<?php

/*
 * Copyright © 2010 - 2013 Modo Labs Inc. All rights reserved.
 *
 * The license governing the contents of this file is located in the LICENSE
 * file located at the root directory of this distribution. If the LICENSE file
 * is missing, please contact sales@modolabs.com.
 *
 */

includePackage('DataModel');
class WeatherDataModel extends ItemListDataModel
{
    protected $cacheFolder = 'Weather';

    protected function init($args) {
        parent::init($args);
        if (isset($args['HTML_ID']) && strlen($args['HTML_ID'])) {
            $this->setOption('htmlId', $args['HTML_ID']);
        }
        if (isset($args['DETAIL_CITY']) && strlen($args['DETAIL_CITY'])) {
            $this->setOption('detail_city', $args['DETAIL_CITY']);
        }
    }
}
